xen/arm: vgic-v2: Implement correctly ICFGR{0, 1} read-only
authorJulien Grall <julien.grall@citrix.com>
Wed, 18 Nov 2015 17:27:56 +0000 (17:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Nov 2015 12:29:27 +0000 (12:29 +0000)
commitafbbf2c8f638ba406b6f002fffe73f5761a5b658
tree676203009d562c34720ae1a8d1ad151f382b1a1e
parentc4d6bbdc12e5660fb1842bdce06002bf65a09758
xen/arm: vgic-v2: Implement correctly ICFGR{0, 1} read-only

Each ITARGETSR register is 4-bytes wide and the offset is in bytes.

The current implementation is computing the offset of ICFGR1 and ICFG2
wrongly result to emulate only the first 2 byte of the ICFGR<n> range
read-only. The rest will be treated as read-write.

For convenience introduce ITARGETSR1 and ITARGETSR2.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- typoes in commit message ]
xen/arch/arm/vgic-v2.c
xen/include/asm-arm/gic.h